package com.jbp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jbp.model.PoolXUser;

public interface PoolXUserDao extends BaseMapper<PoolXUser> {

    /*
    SELECT * FROM pool_x_user
        WHERE user_id=#{userId}
--         WHERE (user_id=#{userId} or ip=#{ip} or device=#{device})
        and del=0 and price=#{price}
     */
    PoolXUser getByUser(Integer userId, String device, String ip, Integer price);
}